package com.xdf.data_transmitter.service;

import com.xdf.data_transmitter.dao.erp.GJrkbillMapper;
import com.xdf.data_transmitter.model.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class GJrkbillServiceImpl implements GJrkbillService {
    @Autowired
    private GJrkbillMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer b_ItemID) {
        return dao.deleteByPrimaryKey(b_ItemID);
    }

    @Override
    public int insert(GJrkbill record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(GJrkbill record) {
        return dao.insertSelective(record);
    }

    @Override
    public GJrkbill selectByPrimaryKey(Integer b_ItemID) {
        return dao.selectByPrimaryKey(b_ItemID);
    }

    @Override
    public int updateByPrimaryKeySelective(GJrkbill record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GJrkbill record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<GCpwarehousing> selectAfter(int iid) {
        return dao.selectAfter(iid);
    }

    @Override
    public int updateUpload(Date dtrk) {
        return dao.updateUpload(dtrk);
    }

    @Override
    public List<JrkStatistics> getUploadJrkStatistics(int iid) {
        return dao.getUploadJrkStatistics(iid);
    }

    @Override
    public List<ClientPushlistDetail> getClientPushlistDetail4JrkBill(String vat_num, String process_name, Date dtrk) {
        return dao.getClientPushlistDetail4JrkBill(vat_num, process_name, dtrk);
    }

    @Override
    public List<FinishedVatnum> getFinishedVatnum(Integer lastIId) {
        return dao.getFinishedVatnum(lastIId);
    }
}
